
package org.edu.modules.common.base;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * dto-查询条件
 */
@Data
public class ConditionDto implements Serializable {
    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 9029420697139862613L;

    /**
     * 操作符
     */
    private OperationEnum operator;

    /**
     * 列名
     */
    private String column;

    /**
     * 值
     */
    private Object value;

    /**
     * 区间值1
     */
    private Object betweenValue1;

    /**
     * 区间值2
     */
    private Object betweenValue2;

    /**
     * 子集，只使用操作符and和or
     */
    private List<ConditionDto> children;
}
